﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmClienteLocalActualizar.aspx.cs" Inherits="Crosland.Automotriz.Web.wFrmClienteLocalActualizar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="GMaps" Namespace="Subgurim.Controles" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxSplitter" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dx" %>
<%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <script src="../Scripts/validacion.js" type="text/javascript"></script>
    <script src="js_maps/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
    <script src="js_maps/gmaps.js" type="text/javascript"></script>
    <script type="text/javascript">

        function MostrarAlerta() {
            popupErrores.Show();
        }

        function MostrarCorrecto() {
            popupCorrecto.Show();
        }
    </script>
    <script type="text/javascript">

        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador2');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }
        }

    </script>
    <style type="text/css">
        .div-contenedor-map {
            overflow: hidden;
            position: relative;
        }
        .div-buscador-map
        {
            position: relative;
            overflow: hidden;
            margin: 0 0 5px 0px;
        }
        .div-txt-buscador-map
        {
            float: left;
        }
        .div-btn-buscador-map
        {
            float: left;
            margin: 0px 5px;
        }
        .div-lbl-ejemplo-buscar
        {
            float: left;
            margin: 0px 5px;
        }
        .lbl-ejemplo-buscar
        {
        }
        .map-map {
            position: relative;
        }
        #map
        {
            display: block;
            width: 1000px;
            height: 500px;
            margin: 4px 0px;
            border: 1px solid #C4C4C4;
        }
    </style>
    <style type="text/css">
        .allUpper input
        {
            text-transform: uppercase;
        }
        .style1
        {
            width: 155px;
        }
        .style6
        {
            width: 52px;
        }
        .style7
        {
        }
        .style8
        {
            width: 205px;
        }
        /*Textbox Watermark*/
        
        .unwatermarked
        {
            height: 18px;
            width: 148px;
        }
        
        .watermarked
        {
            height: 20px;
            width: 150px;
            padding: 2px 0 0 2px; /*border:1px solid #BEBEBE;*/ /*background-color:#F0F8FF;*/
            color: gray;
        }
        .style9
        {
            width: 147px;
        }
        .style10
        {
            width: 144px;
        }
        .style12
        {
            width: 95px;
        }
        .style13
        {
            width: 200px;
        }
        .style14
        {
            width: 50px;
            height: 50px;
        }
    </style>
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo" style="text-align: left">
            <asp:Label ID="lblTitulo" runat="server"></asp:Label>
            &nbsp;-
            <asp:Label runat="server" Font-Bold="True" Font-Size="16pt" ID="lblCliente" Style="font-size: 17px"></asp:Label>
        </div>
    </div>
    <div style="padding: 5px">
        <asp:HiddenField ID="hfIndicador2" runat="server" Value="S" />
        <table cellpadding="5" width="100%" border="0" cellspacing="0">
            <tr>
                <td style="height: 10px">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 105px">
                                <dx:ASPxButton ID="btnRegistrar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Grabar" Width="100px" OnClick="btnRegistrar_Click">
                                    <ClientSideEvents Click="function(s, e) {
	e.processOnServer = confirm('¿Desea guardar los datos?');
}" />
                                    <Image Url="~/Images/save_16.gif">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnSalir" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Salir" Width="100px" OnClick="btnSalir_Click">
                                    <Image Url="~/Images/logout.png">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="left" valign="top" height="0">
                    <table cellpadding="5" cellspacing="0" width="100%" style="height: 0px">
                        <tr>
                            <td class="style12">
                                <asp:Label ID="Label40" runat="server" Font-Bold="True" ForeColor="Black" Text="Razón Social:"
                                    Visible="False"></asp:Label>
                            </td>
                            <td>
                                <dx:ASPxComboBox ID="cboCliente" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" Height="30px" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Visible="False" Width="300px">
                                    <ItemStyle Height="30px" />
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                    </LoadingPanelImage>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <DropDownButton Width="20px">
                                    </DropDownButton>
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                    <Paddings PaddingLeft="5px" />
                                </dx:ASPxComboBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <dx:ASPxPageControl runat="server" ActiveTabIndex="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        TabSpacing="0px" CssPostfix="Office2010Blue" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        ID="ASPxPageControl1" Width="100%" AutoPostBack="True">
                        <TabPages>
                            <dx:TabPage Text="Datos Generales">
                                <TabImage Url="~/Images/landscape.gif">
                                </TabImage>
                                <ContentCollection>
                                    <dx:ContentControl ID="ContentControl1" runat="server" SupportsDisabledAttribute="True">
                                        <asp:UpdatePanel runat="server" ID="UpdatePanel1">
                                            <ContentTemplate>
                                                <dx:ASPxRoundPanel runat="server" GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px"
                                                    HeaderText="Datos Generales del Local" Width="100%" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    EnableDefaultAppearance="False" CssPostfix="Office2010Blue" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    ID="ASPxRoundPanel2">
                                                    <ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" PaddingBottom="10px">
                                                    </ContentPaddings>
                                                    <HeaderStyle>
                                                        <Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px">
                                                        </Paddings>
                                                    </HeaderStyle>
                                                    <PanelCollection>
                                                        <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                                                            <table width="100%" cellpadding="5">
                                                                <tr>
                                                                    <td style="width: 200px">
                                                                        <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Departamento:"></asp:Label>
                                                                        <asp:Label ID="Label25" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                                    </td>
                                                                    <td style="width: 250px">
                                                                        <dx:ASPxComboBox ID="cboDepartamento" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains"
                                                                            OnSelectedIndexChanged="cboDepartamento_SelectedIndexChanged" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px">
                                                                            <ItemStyle Height="30px" />
                                                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                            </LoadingPanelImage>
                                                                            <LoadingPanelStyle ImageSpacing="5px">
                                                                            </LoadingPanelStyle>
                                                                            <DropDownButton Width="20px">
                                                                            </DropDownButton>
                                                                            <ButtonStyle Width="13px">
                                                                            </ButtonStyle>
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                        </dx:ASPxComboBox>
                                                                    </td>
                                                                    <td style="width: 200px;">
                                                                        <asp:Label ID="Label4" runat="server" Font-Bold="True" Text="Establecimiento:"></asp:Label>
                                                                        <asp:Label ID="Label28" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtEstablecimiento" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="30" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="ESTABLECIMIENTO">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 65 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 96 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else {return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 115px">
                                                                        <asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Provincia:"></asp:Label>
                                                                        <asp:Label ID="Label26" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxComboBox ID="cboProvincia" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains"
                                                                            OnSelectedIndexChanged="cboProvincia_SelectedIndexChanged" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px">
                                                                            <ItemStyle Height="30px" />
                                                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                            </LoadingPanelImage>
                                                                            <LoadingPanelStyle ImageSpacing="5px">
                                                                            </LoadingPanelStyle>
                                                                            <DropDownButton Width="20px">
                                                                            </DropDownButton>
                                                                            <ButtonStyle Width="13px">
                                                                            </ButtonStyle>
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                        </dx:ASPxComboBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label5" runat="server" Font-Bold="True" Text="Dirección:"></asp:Label>
                                                                        <asp:Label ID="Label29" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtDireccion" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="100" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="DIRECCION">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 65 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 96 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else {return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 115px">
                                                                        <asp:Label ID="Label3" runat="server" Font-Bold="True" Text="Distrito:"></asp:Label>
                                                                        <asp:Label ID="Label27" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxComboBox ID="cboDistrito" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains"
                                                                            Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="200px">
                                                                            <ItemStyle Height="30px" />
                                                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                            </LoadingPanelImage>
                                                                            <LoadingPanelStyle ImageSpacing="5px">
                                                                            </LoadingPanelStyle>
                                                                            <DropDownButton Width="20px">
                                                                            </DropDownButton>
                                                                            <ButtonStyle Width="13px">
                                                                            </ButtonStyle>
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                        </dx:ASPxComboBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label6" runat="server" Font-Bold="True" Text="Referencia:"></asp:Label>
                                                                        <asp:Label ID="Label30" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtReferencia" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="100" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="REFERENCIA DIRECCION">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 65 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 96 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else {return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 115px">
                                                                        <asp:Label ID="Label9" runat="server" Font-Bold="True" Text="Condición:"></asp:Label>
                                                                        <asp:Label ID="Label31" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxComboBox ID="cboCondicion" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px">
                                                                            <ItemStyle Height="30px" />
                                                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                            </LoadingPanelImage>
                                                                            <LoadingPanelStyle ImageSpacing="5px">
                                                                            </LoadingPanelStyle>
                                                                            <DropDownButton Width="20px">
                                                                            </DropDownButton>
                                                                            <ButtonStyle Width="13px">
                                                                            </ButtonStyle>
                                                                            <Paddings PaddingLeft="5px" />
                                                                        </dx:ASPxComboBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label12" runat="server" Font-Bold="True" Text="N° Personal:"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxSpinEdit ID="seVendedores" runat="server" AllowNull="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" LargeIncrement="1" Number="0" NumberType="Integer"
                                                                            Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="200px"
                                                                            MaxValue="100">
                                                                            <SpinButtons HorizontalSpacing="0">
                                                                            </SpinButtons>
                                                                            <IncrementButtonStyle Width="20px">
                                                                            </IncrementButtonStyle>
                                                                            <Paddings PaddingLeft="5px" />
                                                                        </dx:ASPxSpinEdit>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 115px">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label11" runat="server" Font-Bold="True" Text="Encargado:"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtEncargado" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="200" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="ENCARGADO">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 65 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 96 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else {return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 115px">
                                                                        <asp:Label ID="Label13" runat="server" Font-Bold="True" Text="Teléfono 1:"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtTelefono1" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="50" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="TELEFONO">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 65 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 96 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else {return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label16" runat="server" Font-Bold="True" Text="Email 1:"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtEmail1" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="50" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="EMAIL">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 45) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 64 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 95 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else { return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 115px">
                                                                        <asp:Label ID="Label14" runat="server" Font-Bold="True" Text="Teléfono 2:"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtTelefono2" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="50" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="TELEFONO">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 65 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 96 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else {return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label17" runat="server" Font-Bold="True" Text="Email 2:"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtEmail2" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="50" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="EMAIL">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 45) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 64 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 95 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else { return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 115px">
                                                                        <asp:Label ID="Label15" runat="server" Font-Bold="True" Text="Teléfono 3:"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtTelefono3" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="50" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="TELEFONO">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 65 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 96 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else {return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label18" runat="server" Font-Bold="True" Text="Email 3:"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtEmail3" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" MaxLength="50" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px" NullText="EMAIL">
                                                                            <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 45) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode &gt;= 48 &amp;&amp; e.htmlEvent.keyCode &lt;= 57)  ||
            (e.htmlEvent.keyCode &gt;= 64 &amp;&amp; e.htmlEvent.keyCode &lt;= 90)  ||
            (e.htmlEvent.keyCode &gt;= 95 &amp;&amp; e.htmlEvent.keyCode &lt;= 105)  ||
            (e.htmlEvent.keyCode &gt;= 97 &amp;&amp; e.htmlEvent.keyCode &lt;= 122)
        ) {
    return true; }

  else { return _aspxPreventEvent(e.htmlEvent); }

}" />
                                                                            <Paddings PaddingLeft="5px" />
                                                                            <NullTextStyle CssClass="watermarked">
                                                                            </NullTextStyle>
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 115px">
                                                                        <asp:Label ID="Label19" runat="server" Font-Bold="True" Text="Estado de Exclusividad:"></asp:Label>
                                                                        <asp:Label ID="Label32" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxComboBox ID="cboEstadoExclusividad" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px">
                                                                            <ItemStyle Height="30px" />
                                                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                            </LoadingPanelImage>
                                                                            <LoadingPanelStyle ImageSpacing="5px">
                                                                            </LoadingPanelStyle>
                                                                            <DropDownButton Width="20px">
                                                                            </DropDownButton>
                                                                            <ButtonStyle Width="13px">
                                                                            </ButtonStyle>
                                                                            <Paddings PaddingLeft="5px" />
                                                                        </dx:ASPxComboBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label ID="Label20" runat="server" Font-Bold="True" Text="Categoría del Cliente:"></asp:Label>
                                                                        <asp:Label ID="Label33" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <dx:ASPxComboBox ID="cboCategoriaCliente" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" Height="30px" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Width="200px">
                                                                            <ItemStyle Height="30px" />
                                                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                            </LoadingPanelImage>
                                                                            <LoadingPanelStyle ImageSpacing="5px">
                                                                            </LoadingPanelStyle>
                                                                            <DropDownButton Width="20px">
                                                                            </DropDownButton>
                                                                            <ButtonStyle Width="13px">
                                                                            </ButtonStyle>
                                                                            <Paddings PaddingLeft="5px" />
                                                                        </dx:ASPxComboBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td style="width: 115px">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="4">
                                                                        <asp:Label ID="Label34" runat="server" ForeColor="#CC0000" Text="* Estos datos son obligatorios."></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </dx:PanelContent>
                                                    </PanelCollection>
                                                </dx:ASPxRoundPanel>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                            <dx:TabPage Text="Clasificaci&#243;n de Ventas">
                                <TabImage Url="~/Images/class.gif">
                                </TabImage>
                                <ContentCollection>
                                    <dx:ContentControl ID="ContentControl2" runat="server" SupportsDisabledAttribute="True">
                                        <dx:ASPxRoundPanel runat="server" GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px"
                                            HeaderText="Clasificaci&#243;n de Ventas" Width="100%" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            EnableDefaultAppearance="False" CssPostfix="Office2010Blue" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            ID="ASPxRoundPanel1">
                                            <ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" PaddingBottom="10px">
                                            </ContentPaddings>
                                            <HeaderStyle>
                                                <Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px">
                                                </Paddings>
                                            </HeaderStyle>
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
                                                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                                        <ContentTemplate>
                                                            <table width="100%">
                                                                <tr>
                                                                    <td valign="top" width="300px">
                                                                        <dx:ASPxGridView ID="gvClasificacion" runat="server" AutoGenerateColumns="False"
                                                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                            KeyFieldName="ID_TIPO_CLASIFICACION" Style="margin-right: 0px" Width="300px">
                                                                            <Columns>
                                                                                <dx:GridViewDataTextColumn Caption=" Descripción" ShowInCustomizationForm="True"
                                                                                    VisibleIndex="1" Width="50px">
                                                                                    <DataItemTemplate>
                                                                                        <asp:CheckBox ID="chkEstado" runat="server" AutoPostBack="True" OnCheckedChanged="chkEstado_CheckedChanged"
                                                                                            Text='<%# Bind("des_nombre") %>' />
                                                                                        <asp:Label ID="lblID" runat="server" Text='<%# Bind("ID_TIPO_CLASIFICACION") %>'
                                                                                            Visible="False"></asp:Label>
                                                                                        <asp:Label ID="lblSetup" runat="server" Text='<%# Bind("DES_SETUP") %>' Visible="False"></asp:Label>
                                                                                    </DataItemTemplate>
                                                                                    <CellStyle HorizontalAlign="Left">
                                                                                    </CellStyle>
                                                                                </dx:GridViewDataTextColumn>
                                                                            </Columns>
                                                                            <SettingsPager Mode="ShowAllRecords" Visible="False">
                                                                            </SettingsPager>
                                                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                                </LoadingPanelOnStatusBar>
                                                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                                </LoadingPanel>
                                                                            </Images>
                                                                            <ImagesFilterControl>
                                                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                                </LoadingPanel>
                                                                            </ImagesFilterControl>
                                                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                                                </Header>
                                                                                <LoadingPanel ImageSpacing="5px">
                                                                                </LoadingPanel>
                                                                            </Styles>
                                                                            <StylesPager>
                                                                                <PageNumber ForeColor="#3E4846">
                                                                                </PageNumber>
                                                                                <Summary ForeColor="#1E395B">
                                                                                </Summary>
                                                                            </StylesPager>
                                                                            <StylesEditors ButtonEditCellSpacing="0">
                                                                                <ProgressBar Height="21px">
                                                                                </ProgressBar>
                                                                            </StylesEditors>
                                                                        </dx:ASPxGridView>
                                                                    </td>
                                                                    <td valign="top">
                                                                        <asp:Panel ID="Panel1" runat="server" Visible="False">
                                                                            <table width="100%">
                                                                                <tr>
                                                                                    <td class="style6">
                                                                                        <asp:Label ID="Label24" runat="server" Font-Bold="True" Text="Modelo:"></asp:Label>
                                                                                    </td>
                                                                                    <td class="style8">
                                                                                        <dx:ASPxComboBox ID="cboModelo0" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                            CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains"
                                                                                            Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="200px">
                                                                                            <ItemStyle Height="30px" />
                                                                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                                            </LoadingPanelImage>
                                                                                            <LoadingPanelStyle ImageSpacing="5px">
                                                                                            </LoadingPanelStyle>
                                                                                            <DropDownButton Width="20px">
                                                                                            </DropDownButton>
                                                                                            <ButtonStyle Width="13px">
                                                                                            </ButtonStyle>
                                                                                            <Paddings PaddingLeft="5px" />
                                                                                        </dx:ASPxComboBox>
                                                                                    </td>
                                                                                    <td>
                                                                                        <dx:ASPxButton ID="btnAgregarModelo0" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                            CssPostfix="Office2010Blue" OnClick="btnAgregarModelo0_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                            Text="Agregar">
                                                                                            <Image Url="~/Images/add2.png">
                                                                                            </Image>
                                                                                        </dx:ASPxButton>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td class="style6">
                                                                                        &nbsp;
                                                                                    </td>
                                                                                    <td class="style7" colspan="2">
                                                                                        <dx:ASPxGridView ID="gvModelos0" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                            CssPostfix="Office2010Blue" KeyFieldName="ID_CLIENTE_MODELO" OnRowDeleting="gvModelos0_RowDeleting"
                                                                                            Width="100%">
                                                                                            <Columns>
                                                                                                <dx:GridViewCommandColumn ButtonType="Image" Caption="Eliminar" ShowInCustomizationForm="True"
                                                                                                    VisibleIndex="2" Width="50px">
                                                                                                    <DeleteButton Visible="True">
                                                                                                        <Image Url="~/Images/delete.png">
                                                                                                        </Image>
                                                                                                    </DeleteButton>
                                                                                                </dx:GridViewCommandColumn>
                                                                                                <dx:GridViewDataTextColumn Caption="ID" FieldName="ID_CLIENTE_MODELO" ShowInCustomizationForm="True"
                                                                                                    VisibleIndex="0" Width="20px">
                                                                                                </dx:GridViewDataTextColumn>
                                                                                                <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" ShowInCustomizationForm="True"
                                                                                                    VisibleIndex="1">
                                                                                                </dx:GridViewDataTextColumn>
                                                                                            </Columns>
                                                                                            <SettingsBehavior AllowClientEventsOnLoad="False" AllowDragDrop="False" AllowGroup="False"
                                                                                                AllowSort="False" ConfirmDelete="True" />
                                                                                            <SettingsPager Visible="False">
                                                                                            </SettingsPager>
                                                                                            <SettingsText ConfirmDelete="¿Seguro de eliminar el modelo?" />
                                                                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                                                </LoadingPanelOnStatusBar>
                                                                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                                                </LoadingPanel>
                                                                                            </Images>
                                                                                            <ImagesFilterControl>
                                                                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                                                </LoadingPanel>
                                                                                            </ImagesFilterControl>
                                                                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                                                                </Header>
                                                                                                <LoadingPanel ImageSpacing="5px">
                                                                                                </LoadingPanel>
                                                                                            </Styles>
                                                                                            <StylesPager>
                                                                                                <PageNumber ForeColor="#3E4846">
                                                                                                </PageNumber>
                                                                                                <Summary ForeColor="#1E395B">
                                                                                                </Summary>
                                                                                            </StylesPager>
                                                                                            <StylesEditors ButtonEditCellSpacing="0">
                                                                                                <ProgressBar Height="21px">
                                                                                                </ProgressBar>
                                                                                            </StylesEditors>
                                                                                        </dx:ASPxGridView>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </asp:Panel>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxRoundPanel>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                            <dx:TabPage Text="Visitas">
                                <TabImage Url="~/Images/calendar.png">
                                </TabImage>
                                <ContentCollection>
                                    <dx:ContentControl ID="ContentControl3" runat="server" SupportsDisabledAttribute="True">
                                        <table width="100%">
                                            <tr>
                                                <td class="style12">
                                                    <asp:Label ID="Label35" runat="server" Font-Bold="True" Text="Fecha:"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxDateEdit ID="deFecha" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Date="2013-07-04" Height="30px" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="150px">
                                                        <CalendarProperties>
                                                            <HeaderStyle Spacing="1px" />
                                                        </CalendarProperties>
                                                        <DropDownButton Width="20px">
                                                        </DropDownButton>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <Paddings PaddingLeft="5px" />
                                                        <Paddings PaddingLeft="5px"></Paddings>
                                                    </dx:ASPxDateEdit>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style12">
                                                    <asp:Label ID="Label36" runat="server" Font-Bold="True" Text="Supervisor:"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="cboVendedor" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains"
                                                        Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="300px">
                                                        <ItemStyle Height="30px" />
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <DropDownButton Width="20px">
                                                        </DropDownButton>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <Paddings PaddingLeft="5px" />
                                                        <Paddings PaddingLeft="5px"></Paddings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style12">
                                                    <asp:Label ID="Label37" runat="server" Font-Bold="True" Text="Observacion:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtObservacion" runat="server" BorderColor="#999999" BorderStyle="Solid"
                                                        Height="60px" TextMode="MultiLine" Width="300px"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style12">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnAgregar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" OnClick="btnAgregar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Agregar">
                                                        <Image Url="~/Images/add2.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style12">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    <dx:ASPxGridView ID="gvVisitas" runat="server" AutoGenerateColumns="False" Caption="Lista de Visitas"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        KeyFieldName="ID_CLIENTE_LOCAL_VISITA" OnRowDeleting="gvVisitas_RowDeleting"
                                                        Width="100%">
                                                        <Columns>
                                                            <dx:GridViewCommandColumn ButtonType="Image" Caption="Eliminar" ShowInCustomizationForm="True"
                                                                VisibleIndex="4" Width="50px">
                                                                <DeleteButton Visible="True">
                                                                    <Image Url="~/Images/delete.png">
                                                                    </Image>
                                                                </DeleteButton>
                                                            </dx:GridViewCommandColumn>
                                                            <dx:GridViewDataTextColumn Caption="FECHA" FieldName="FEC_VISITA" ShowInCustomizationForm="True"
                                                                VisibleIndex="0" Width="100px">
                                                                <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                                                </PropertiesTextEdit>
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="OBSERVACION" FieldName="DES_OBSERVACION" ShowInCustomizationForm="True"
                                                                VisibleIndex="2">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="USUARIO" FieldName="NOMBRE_APELLIDO" ShowInCustomizationForm="True"
                                                                VisibleIndex="1" Width="200px">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Fotos" ShowInCustomizationForm="True" VisibleIndex="3"
                                                                Width="50px">
                                                                <DataItemTemplate>
                                                                    <asp:ImageButton ID="ibFotos" runat="server" ImageUrl="~/Images/camera.png" OnClick="ibFotos_Click" />
                                                                </DataItemTemplate>
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                                <CellStyle HorizontalAlign="Center">
                                                                </CellStyle>
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowDragDrop="False" AllowGroup="False" AllowSort="False" ConfirmDelete="True"
                                                            AllowFocusedRow="True" AllowSelectByRowClick="True" AllowSelectSingleRowOnly="True" />
                                                        <SettingsBehavior AllowDragDrop="False" AllowSort="False" AllowGroup="False" AllowFocusedRow="True"
                                                            AllowSelectByRowClick="True" AllowSelectSingleRowOnly="True" ConfirmDelete="True">
                                                        </SettingsBehavior>
                                                        <SettingsPager Visible="False">
                                                        </SettingsPager>
                                                        <Settings ShowGroupButtons="False" ShowHeaderFilterBlankItems="False" />
                                                        <SettingsText ConfirmDelete="¿Eliminar la visita?" />
                                                        <Settings ShowHeaderFilterBlankItems="False" ShowGroupButtons="False"></Settings>
                                                        <SettingsText ConfirmDelete="&#191;Eliminar la visita?"></SettingsText>
                                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                            <LoadingPanel ImageSpacing="5px">
                                                            </LoadingPanel>
                                                        </Styles>
                                                        <StylesPager>
                                                            <PageNumber ForeColor="#3E4846">
                                                            </PageNumber>
                                                            <Summary ForeColor="#1E395B">
                                                            </Summary>
                                                        </StylesPager>
                                                        <StylesEditors ButtonEditCellSpacing="0">
                                                            <ProgressBar Height="21px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                            <dx:TabPage Text="Mapa">
                                <TabImage Url="~/Images/google_maps.png">
                                </TabImage>
                                <ContentCollection>
                                    <dx:ContentControl ID="ContentControl4" runat="server" SupportsDisabledAttribute="True">
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                            <ContentTemplate>
                                                <%--
                                                <div style="width: 50px; height: 50px; position: absolute; left: 508px; top: 390px; z-index: 99;">
                                                    <img class="style14" src="../Images/ubicador.gif" />
                                                </div>
                                                --%>
                                                <%--
                                                <cc1:GMap ID="mapa2" runat="server" Width="1000px" Height="500px" />
                                                --%>
                                                <div class="div-contenedor-map">
                                                    <div class="div-buscador-map">
                                                        <div class="div-txt-buscador-map">
                                                            <dx:ASPxTextBox ID="txtBuscarCalle" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" Height="30px" MaxLength="50" NullText="nombre calle, av, jr -- distrito -- provincia -- pais"
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="500px">
                                                                <Paddings PaddingLeft="5px" />
                                                                <NullTextStyle CssClass="watermarked">
                                                                </NullTextStyle>
                                                            </dx:ASPxTextBox>
                                                        </div>
                                                        <div class="div-btn-buscador-map">
                                                            <dx:ASPxButton ID="btn_verdirecion" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                Text="Ver dirección" Height="30px" Width="200px">
                                                                <Image>
                                                                </Image>
                                                            </dx:ASPxButton>
                                                        </div>
                                                        <div class="div-lbl-ejemplo-buscar">
                                                            <div>
                                                                <asp:Label ID="Label10" runat="server" Text="Ejemplo:" CssClass=""></asp:Label></div>
                                                            <div>
                                                                <asp:Label ID="lbl_ejemplo_buscar" runat="server" Text="av. Augusto Pérez Araníbar Nro. 1872, San Isidro"
                                                                    CssClass="lbl-ejemplo-buscar"></asp:Label></div>
                                                        </div>
                                                    </div>
                                                    <div class="map-map">
                                                        <div id="map">
                                                        </div>
                                                    </div>
                                                </div>
                                                <table border="0" cellpadding="5" cellspacing="0" width="700px" style="border-style: solid none none none;
                                                    border-width: 1px; border-color: #909AA6">
                                                    <tr>
                                                        <td class="style10" style="padding-left: 8px">
                                                            <asp:Label ID="Label7" runat="server" Font-Bold="True" ForeColor="Black" Text="Latitud:"></asp:Label>
                                                        </td>
                                                        <td style="width: 234px">
                                                            <asp:Label ID="lblLatitud" runat="server" Font-Bold="True" ForeColor="Black" Text="0"></asp:Label>
                                                            <asp:HiddenField ID="txt_Latitud" runat="server" Value="0" />
                                                        </td>
                                                        <td class="style9">
                                                            <asp:Label ID="Label8" runat="server" Font-Bold="True" ForeColor="Black" Text="Longitud:"></asp:Label>
                                                        </td>
                                                        <td style="width: 234px">
                                                            <asp:Label ID="lblLongitud" runat="server" Font-Bold="True" ForeColor="Black" Text="0"></asp:Label>
                                                            <asp:HiddenField ID="txt_Longitud" runat="server" Value="0" />
                                                        </td>
                                                        <td align="right" style="width: 234px">
                                                            <dx:ASPxButton ID="btnObtenerCordenadas" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" OnClick="btnObtenerCordenadas_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                Text="Establecer Coordenadas" Width="200px" Visible="false">
                                                                <Image Url="~/Images/google_maps_mark.gif">
                                                                </Image>
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td>
                                                            <asp:HiddenField ID="txt_indicador_msj" runat="server" Value="0" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                        </TabPages>
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                        <Paddings Padding="2px" PaddingLeft="5px" PaddingRight="5px"></Paddings>
                        <ContentStyle>
                            <Paddings Padding="12px"></Paddings>
                            <Border BorderColor="#859EBF" BorderStyle="Solid" BorderWidth="1px"></Border>
                        </ContentStyle>
                    </dx:ASPxPageControl>
                </td>
            </tr>
        </table>
    </div>
    <dx:ASPxPopupControl ID="popupErrores" runat="server" AllowDragging="True" ClientInstanceName="popupErrores"
        CloseAction="CloseButton" EnableViewState="False" HeaderText="Mensaje" Modal="True"
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
        Width="300px" EnableHotTrack="False">
        <HeaderImage Url="~/Images/icon_message.png">
        </HeaderImage>
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle BackColor="#CC0000" Font-Bold="True" Font-Names="Arial" ForeColor="White">
            <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                <br />
                <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent3" runat="server">
                            <table width="100%">
                                <tr>
                                    <td align="center" valign="middle">
                                        <asp:Label ID="lblMensaje" runat="server" Font-Bold="True" ForeColor="#CC0000"></asp:Label>
                                        <br />
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <dx:ASPxButton ID="ASPxButton6" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="Aceptar" Width="100px">
                                            <ClientSideEvents Click="function(s, e) {
	popupErrores.Hide();
}" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <dx:ASPxPopupControl ID="popupCorrecto" runat="server" AllowDragging="True" ClientInstanceName="popupCorrecto"
        CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
        Width="300px" EnableHotTrack="False">
        <HeaderImage Url="~/Images/icon_message.png">
        </HeaderImage>
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle Font-Bold="False">
            <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                <br />
                <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent6" runat="server">
                            <table width="100%">
                                <tr>
                                    <td align="center" valign="middle">
                                        <asp:Label ID="lblMensajeCorrecto" runat="server" Font-Bold="False" ForeColor="Black"></asp:Label>
                                        <br />
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="Aceptar" Width="100px">
                                            <ClientSideEvents Click="function(s, e) {
	popupCorrecto.Hide();
}" />
                                            <Image Url="~/Images/ok.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <dx:ASPxPopupControl ID="pcFotos" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" EnableHotTrack="False" HeaderText="Album de Fotos"
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="800px"
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" AllowDragging="True"
        AppearAfter="0" CloseAction="CloseButton" AutoUpdatePosition="True">
        <HeaderImage Url="~/Images/camera.png">
        </HeaderImage>
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
            <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                    <ContentTemplate>
                        <table width="100%">
                            <tr>
                                <td rowspan="4" valign="top" width="200">
                                    <table>
                                        <tr>
                                            <td>
                                                <dx:ASPxRoundPanel ID="ASPxRoundPanel3" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                                    GroupBoxCaptionOffsetY="-19px" HeaderText="Carpetas" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Width="200px">
                                                    <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                                    <HeaderImage Url="~/Images/folder.png">
                                                    </HeaderImage>
                                                    <HeaderStyle>
                                                        <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                                    </HeaderStyle>
                                                    <PanelCollection>
                                                        <dx:PanelContent ID="PanelContent4" runat="server" SupportsDisabledAttribute="True">
                                                            <table cellpadding="0" cellspacing="0" width="100%">
                                                                <tr>
                                                                    <td>
                                                                        <asp:TreeView ID="tvCarpetas" runat="server" OnSelectedNodeChanged="tvCarpetas_SelectedNodeChanged">
                                                                            <NodeStyle ImageUrl="~/Images/folder.png" />
                                                                            <ParentNodeStyle ImageUrl="~/Images/folder.png" />
                                                                            <RootNodeStyle ImageUrl="~/Images/folderopen.gif" />
                                                                            <SelectedNodeStyle Font-Bold="True" ForeColor="#0066CC" />
                                                                        </asp:TreeView>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                                            <tr>
                                                                                <td width="45">
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td width="45">
                                                                                    &nbsp;
                                                                                </td>
                                                                                <td>
                                                                                    &nbsp;
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td width="45">
                                                                                    <dx:ASPxButton ID="btnNuevo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                        CssPostfix="Office2010Blue" OnClick="btnNuevo_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                        Text="Add" Width="40px">
                                                                                    </dx:ASPxButton>
                                                                                </td>
                                                                                <td width="45">
                                                                                    <dx:ASPxButton ID="btnEditar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                        CssPostfix="Office2010Blue" OnClick="btnEditar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                        Text="Edit" Width="40px">
                                                                                    </dx:ASPxButton>
                                                                                </td>
                                                                                <td>
                                                                                    <dx:ASPxButton ID="btnEliminar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                        CssPostfix="Office2010Blue" OnClick="btnEliminar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                        Text="Del" Width="40px">
                                                                                    </dx:ASPxButton>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </dx:PanelContent>
                                                    </PanelCollection>
                                                </dx:ASPxRoundPanel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxRoundPanel ID="pnlCarpeta" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                    CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                                    GroupBoxCaptionOffsetY="-19px" HeaderText="Nueva Carpeta" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Width="200px" Visible="False">
                                                    <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                                    <HeaderImage Url="~/Images/folder-new-icon.png">
                                                    </HeaderImage>
                                                    <HeaderStyle>
                                                        <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                                    </HeaderStyle>
                                                    <PanelCollection>
                                                        <dx:PanelContent ID="PanelContent5" runat="server" SupportsDisabledAttribute="True">
                                                            <table width="100%">
                                                                <tr>
                                                                    <td height="25">
                                                                        <asp:Label ID="Label38" runat="server" Font-Bold="True" Text="Nombre:"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <dx:ASPxTextBox ID="txtNombreCarpeta" runat="server" Height="30px" NullText="Nombre"
                                                                            Width="170px">
                                                                            <Paddings PaddingLeft="5px" />
                                                                        </dx:ASPxTextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <dx:ASPxButton ID="btnGrabarCarpeta" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                            Text="Grabar" OnClick="btnGrabarCarpeta_Click">
                                                                            <Image Url="~/Images/save_16.gif">
                                                                            </Image>
                                                                        </dx:ASPxButton>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </dx:PanelContent>
                                                    </PanelCollection>
                                                </dx:ASPxRoundPanel>
                                                <asp:HiddenField ID="hfIndicador" runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td valign="top">
                                    <asp:Label ID="Label39" runat="server" Text="Mensaje:"></asp:Label>
                                    <asp:Label ID="lblMensajePopup" runat="server" ForeColor="#CC0000"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <CuteWebUI:Uploader ID="Uploader1" runat="server" CancelAllMsg="Cancelar Todo" CancelText="Cancelar"
                                        CancelUploadMsg="Cancelar" InsertText="Cargar archivos" MultipleFilesUpload="True"
                                        OnFileUploaded="Uploader1_FileUploaded" UploadingMsg="Cargando..." UploadProcessingMsg="Cargando...">
                                        <ValidateOption AllowedFileExtensions="jpeg,jpg,gif,png" />
                                    </CuteWebUI:Uploader>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <dx:ASPxDataView ID="dvFotos" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                        CssPostfix="Office2010Blue" ItemSpacing="21px" PagerPanelSpacing="0px" RowPerPage="1"
                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" AllowPaging="False">
                                        <ItemTemplate>
                                            <div class="foto-item">
                                                <div align="right">
                                                    <asp:ImageButton ID="ibEliminar" runat="server" AlternateText='<%# Bind("ID_CLIENTE_LOCAL_VISITA_CARPETA_FOTO") %>'
                                                        ImageUrl="~/Images/delete.png" OnClick="ibEliminar_Click" OnClientClick="if (!confirm('¿Estas seguro de eliminar?')) return false;"
                                                        Height="16px" Width="16px" />
                                                </div>
                                                <div>
                                                    <asp:TextBox ID="txtComentario" runat="server" Text='<%# Bind("DES_COMENTARIO") %>'
                                                        Width="170px" AutoPostBack="True" Height="30px" OnTextChanged="txtComentario_TextChanged"
                                                        TextMode="MultiLine" ToolTip='<%# Bind("ID_CLIENTE_LOCAL_VISITA_CARPETA_FOTO") %>'></asp:TextBox>
                                                </div>
                                                <ul>
                                                    <asp:ImageButton ID="ibFoto" runat="server" Height="120px" ImageUrl='<%# Bind("DES_NOMBRE") %>'
                                                        Width="170px" />
                                                </ul>
                                            </div>
                                        </ItemTemplate>
                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                        </LoadingPanelImage>
                                        <LoadingPanelStyle ImageSpacing="5px">
                                        </LoadingPanelStyle>
                                        <DisabledStyle ForeColor="#B2B7BD">
                                        </DisabledStyle>
                                    </dx:ASPxDataView>
                                </td>
                            </tr>
                            <tr>
                                <td class="style13">
                                    <asp:Label ID="lblIdVisita" runat="server" Visible="False"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
</asp:Content>
